package com.bonc.rms.dao.impl.tms;

import java.util.List;
import java.util.Map;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Repository;

import com.bonc.rms.dao.tms.TalentInformationDao;
import com.bonc.rms.mapper.TalentInformationMapper;

@Repository
public class TalentInformationDaoImpl implements TalentInformationDao{
	
	@Autowired
	TalentInformationMapper talentInformationMapper;

	public List<Map<String, Object>> getTalentInformation( Integer departmentId, Integer pageno, Integer pageSize) {
		return talentInformationMapper.getTalentInformation(departmentId, pageno * pageSize, pageSize);
	}
	
	public List<Map<String, Object>> searchTalent(Integer departmentId, String keyWord) {
		return talentInformationMapper.searchTalent(departmentId, keyWord);
	}

	@Override
	public Integer getTalentInformationCount(Integer departmentId) {
		return talentInformationMapper.getTalentInformationCount(departmentId);
	}

	@Override
	public List<String> getJobTitle(Integer id) {
		return talentInformationMapper.getJobTitle(id);
	}

}
